<?php

namespace App\Models\Home;

use Illuminate\Database\Eloquent\Model;

class UserInfo extends Model
{
    //禁用时间戳自动管理
    public $timestamps = false;
    //指定表名
    protected $table = 'user_infos';

    protected $fillable = ['favorites', 'likes','following','avatar','bgd','fans'];

    public function user()
    {
        return $this->belongsTo('App\Models\Home\User');
    }
}
